// custom-tab-bar/custom-tab-bar.js
Component({
  properties: {},
  data: {
    show: true,
    selected: 0,
    list: [{
      className: "square",
      name: "广场",
      link: "/pages/home/home"
    }, {
      className: "publish",
      name: "发布",
      link: "/pages/add/typesel/typesel"
    }, {
      className: "money",
      name: "赚钱",
      link: "/pages/morejob/list/list"
    }, {
      className: "my",
      name: "我的",
      link: "/pages/my/index/index"
    }],
    bottomHeight: getApp().globalData.bottomHeight
  },
  methods: {
    navTo(e) {
      wx.switchTab({
        url: e.currentTarget.dataset.path
      });
    },
  }
})